derivatives of second degree polynomial